package com.etoak.service.impl;

import com.etoak.entity.Product;
import com.etoak.mapper.ProductMapper;
import com.etoak.service.IProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProductServiceImpl implements IProductService {

    @Autowired
    ProductMapper productMapper;

    @Override
    public List<Product> getProductByProductLine(String productLineId) {
        return productMapper.getProductByProductLine(productLineId);
    }

    @Override
    public List<Product> getProduct(Product product) {
        return productMapper.getProduct(product);
    }

    @Override
    public int add(Product product) {
        return productMapper.add(product);
    }
}
